<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class Store extends Model
{

    protected $table = 'store'; // 指定表
    protected $fillable = ['id', 'phone_number', 'store_name', 'password', 'store_logo', 'store_domain_name', 'store_grade', 'store_duration', 'store_type', 'passed', 'refuse_reason', 'is_usable', 'remark', 'reason', 'invoice', 'payment_voucher', 'remember_token', 'submit_time', 'first_trial_time', 'upload_documents_time', 'pass_time', 'open_time'];

    public function orders(){
        $this->hasMany('App\Models\Order','store_id','id');
    }
}
